Cryptext x64 v1 deterministic interoperability test vector
===========================================================

Purpose
-------
This vector freezes byte order, password encoding, PBKDF2 input, header layout,
nonce construction, AAD construction, ciphertext/tag order, and AES-GCM output.
The 10,000 iteration count is intentionally only a quick interoperability test
parameter. It is NOT the reference writer default (600,000).

Password text
-------------
Test0815$#!

Password bytes (UTF-16LE, no terminating NUL, no normalization)
---------------------------------------------------------------
54006500730074003000380031003500240023002100

PBKDF2
------
PRF:        HMAC-SHA-256
Iterations: 10000
Salt:
000102030405060708090a0b0c0d0e0f

Derived 32-byte key:
295851377f21a8a02f2f293f760f710ce4f724cb18a3c100ae22bca885b64ec8

Fixed header (72 bytes)
-----------------------
Magic:          CT64FILE
Version:        1
Header size:    72
Flags:          0
KDF ID:         1
Cipher ID:      1
Iterations:     10000
Chunk size:     4194304
Original size:  36
Metadata size:  48
Reserved:       0
Salt:           000102030405060708090a0b0c0d0e0f
Nonce prefix:   a0a1a2a3a4a5a6a7

Header hex:
4354363446494c45010048000000000001000000010000001027000000004000
24000000000000003000000000000000000102030405060708090a0b0c0d0e0f
a0a1a2a3a4a5a6a7

Metadata plaintext (48 bytes)
-----------------------------
MetadataVersion = 1
MetadataSize    = 48
CreationTime    = 0x01DDBEEF01234567
LastWriteTime   = 0x01DDBEEF89ABCDEF
LastAccessTime  = 0x01DDBEEF10203040
Attributes      = 0x00000020
MetadataFlags   = 0
Reserved        = 0

Metadata plaintext hex:
010000003000000067452301efbedd01efcdab89efbedd0140302010efbedd01
20000000000000000000000000000000

Record 0 (metadata)
-------------------
Nonce:
a0a1a2a3a4a5a6a700000000

AAD (80 bytes):
4354363446494c45010048000000000001000000010000001027000000004000
24000000000000003000000000000000000102030405060708090a0b0c0d0e0f
a0a1a2a3a4a5a6a70000000030000000

Metadata ciphertext:
8c81df10378d3be8ee54352ae3b659986e4a6d9354f9b63f300bdaa5d4b96cab
4c753dbabd2131d11396d17514153c28

Metadata tag:
0e5c6c4de9f27162e6872dbf3e757ffe

Data plaintext (36 bytes)
-------------------------
ASCII/UTF-8 text including CRLF:
Cryptext64 v1 test vector payload.\r\n

Plaintext hex:
43727970746578743634207631207465737420766563746f72207061796c6f61
642e0d0a

Record 1 (data)
---------------
Nonce:
a0a1a2a3a4a5a6a700000001

AAD (80 bytes):
4354363446494c45010048000000000001000000010000001027000000004000
24000000000000003000000000000000000102030405060708090a0b0c0d0e0f
a0a1a2a3a4a5a6a70100000024000000

Data ciphertext:
fb044df04b4049f27e508de0006456d46925af97bdea2fcf948cf3a6446ecf35
9b8785d9

Data tag:
2c08d354f1189ba82a426ea1add30ad8

Complete encrypted file
-----------------------
Size: 188 bytes
SHA-256:
a402b22d38d109669d156520bae40890e530561e30fd3d044dea504262d59558

Physical byte order:
  header
  metadata ciphertext
  metadata tag
  data ciphertext
  data tag
